<template>
  <div class="data-aggregation">
    <el-tabs v-model="activeName">
      <el-tab-pane label="任务管理" name="manage"> </el-tab-pane>
      <el-tab-pane label="任务监控" name="monitor"> </el-tab-pane>
    </el-tabs>
    <div class="tab-wrapper">
      <TaskManage v-if="activeName === 'manage'" />
      <TaskMonitor v-if="activeName === 'monitor'" />
    </div>
  </div>
</template>
<script>
import TaskManage from "./components/TaskManage.vue";
import TaskMonitor from "./components/TaskMonitor.vue";
export default {
  name: "DataAggregation",
  components: {
    TaskManage,
    TaskMonitor,
  },
  data() {
    return {
      activeName: "manage",
    };
  },
};
</script>
<style lang="scss" scoped>
.data-aggregation {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding-bottom: 24px;
}

.tab-wrapper {
  flex: 1;
  overflow: hidden;
}
</style>
